/*    */ package system.staros.sblock1;
/*    */ 
/*    */ import java.math.BigDecimal;
/*    */ 
/*    */ public final class ZemNumber extends ZemObject
/*    */ {
/*    */   private BigDecimal value;
/*    */ 
/*    */   public ZemNumber(String paramString)
/*    */   {
/* 35 */     this.value = new BigDecimal(paramString);
/*    */   }
/*    */ 
/*    */   protected ZemNumber(BigDecimal paramBigDecimal) {
/* 39 */     this.value = paramBigDecimal;
/*    */   }
/*    */ 
/*    */   protected ZemNumber(int paramInt) {
/* 43 */     this.value = new BigDecimal(paramInt);
/*    */   }
/*    */ 
/*    */   public ZemNumber add(ZemNumber paramZemNumber) {
/* 47 */     return new ZemNumber(this.value.add(paramZemNumber.value));
/*    */   }
/*    */ 
/*    */   public ZemNumber subtract(ZemNumber paramZemNumber) {
/* 51 */     return new ZemNumber(this.value.subtract(paramZemNumber.value));
/*    */   }
/*    */ 
/*    */   public ZemNumber multiply(ZemNumber paramZemNumber) {
/* 55 */     return new ZemNumber(this.value.multiply(paramZemNumber.value));
/*    */   }
/*    */ 
/*    */   public ZemNumber divide(ZemNumber paramZemNumber) {
/* 59 */     return new ZemNumber(this.value.divide(paramZemNumber.value));
/*    */   }
/*    */ 
/*    */   public ZemNumber remainder(ZemNumber paramZemNumber) {
/* 63 */     return new ZemNumber(this.value.remainder(paramZemNumber.value));
/*    */   }
/*    */ 
/*    */   public ZemNumber power(ZemNumber paramZemNumber) {
/* 67 */     return new ZemNumber(this.value.pow(paramZemNumber.value.intValueExact()));
/*    */   }
/*    */ 
/*    */   public ZemNumber negate() {
/* 71 */     return new ZemNumber(this.value.negate());
/*    */   }
/*    */ 
/*    */   public int intValue() {
/* 75 */     return this.value.intValue();
/*    */   }
/*    */ 
/*    */   public int compareTo(ZemObject paramZemObject) {
/* 79 */     ZemNumber localZemNumber = (ZemNumber)paramZemObject;
/* 80 */     return this.value.compareTo(localZemNumber.value);
/*    */   }
/*    */ 
/*    */   public int hashCode()
/*    */   {
/* 85 */     return this.value.hashCode();
/*    */   }
/*    */ 
/*    */   public String toString()
/*    */   {
/* 90 */     return this.value.toString();
/*    */   }
/*    */ 
/*    */   public boolean equals(Object paramObject)
/*    */   {
/* 95 */     return compareTo((ZemObject)paramObject) == 0;
/*    */   }
/*    */ }

/* Location:           D:\Марк\!IMPORTANT\staros\archive\version-2.260.zip
 * Qualified Name:     system.staros.sblock1.ZemNumber
 * JD-Core Version:    0.6.1
 */